package com.yxx.entityModel.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 登录请求类
 * @author yuxiangxun
 * @date 2025/1/19
 * @apiNote
 */
@Data
@ApiModel(value = "登录请求对象", description = "登录请求对象")
public class LoginRequest {

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, message = "密码长度不能小于6位")
    @ApiModelProperty(value = "密码", required = true)
    private String password;
}
